Skip to content

feat(rename): rename project file on disk#24

Merged
CalvinAllen merged 1 commit into
mainfrom
feat/rename/project-file
Dec 20, 2025
Merged

feat(rename): rename project file on disk#24
CalvinAllen merged 1 commit into
mainfrom
feat/rename/project-file

Conversation

@CalvinAllen

Copy link
Copy Markdown
Contributor

Summary

Add functionality to rename the actual .csproj file on disk.

Changes Made

  • Modified: Services/ProjectFileService.cs
    • Added RenameProjectFile() method
    • Uses full paths via Path.GetDirectoryName() and Path.Combine()
    • Preserves file extension
    • Returns new file path for subsequent operations
  • Modified: Commands/RenamifyProjectCommand.cs
    • Calls RenameProjectFile() after updating namespaces
    • Updated TODO comments with new issue references

Test Plan

  • Build and debug the extension
  • Right-click a project and rename it
  • Verify the .csproj file is renamed on disk
  • Verify file extension is preserved

Note

After this change, the solution will be in a broken state because the project path in the .sln still points to the old file. Issues #21, #22, #23 will complete the rename workflow.

Closes #20

- Add RenameProjectFile method to ProjectFileService
- Uses full paths via Path.GetDirectoryName and Path.Combine
- Preserves file extension
- Returns new file path for subsequent operations
- Update TODO comments with new issue references

Closes #20
@CalvinAllen CalvinAllen merged commit 8d008c7 into main Dec 20, 2025
1 check passed
@CalvinAllen CalvinAllen deleted the feat/rename/project-file branch December 20, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

feat(rename): rename project file on disk

1 participant